import { hasWeeklyApp } from '@/api/deal/track/dealTrack'

const state = {
  hasWeeklyApp: false
}

const mutations = {
  SET_HAS_WEEKLY_APP: (state, hasApp) => {
    state.hasWeeklyApp = hasApp
  }
}

const actions = {
  async SET_HAS_WEEKLY_APP({ commit }) {
    var response = await hasWeeklyApp()
    commit('SET_HAS_WEEKLY_APP', response.data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
